package com.thread.test03;

import java.util.Random;

/**
 * @author bin
 * @date 2025 - 03 -07
 **/
public class Color extends Thread{

    @Override
    public void run() {
        int r = new Random().nextInt(256);
        System.out.println(this.getName() + " " + r);
    }
    public Color(String colorName){
        super(colorName);
    }
}
